package cn.tedu.antconlonysever.contract.service;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.param.ContactAddNewParam;
import cn.tedu.antconlonysever.contract.pojo.param.ContactUpdateParam;
import cn.tedu.antconlonysever.contract.pojo.vo.ContactListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.ContactStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IContactService {
    void addNew(ContactAddNewParam contactAddNewParam);
    void delete(Long id);
    void updateInfoById(Long id, ContactUpdateParam contactUpdateParam);
    ContactStandardVO getStandardById(Long id);
    PageData<ContactListVO> list(Integer pageNum);
    PageData<ContactListVO> list(Integer pageNum,Integer pageSize);
}
